<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
  <style>
    .title {
      color: aquamarine;
      font-size: 20px;
    }
  </style>
</head>
<body>
  <div id="root"></div>

  <script src="./js/react.development.js"></script>
  <script src="./js/react-dom.development.js"></script>
  <script src="./js/babel.min.js"></script>
  <script type="text/babel">
    const vDom = (
      <div>
        {/* 样式属性名用小驼峰形式 | 带px的样式值, 可以省略px, 直接使用数值*/}
        <h3 style={{color: 'red', fontSize: 30}}>React style</h3>
        {/* 不用class属性, 要用className属性 */}
        <h3 className="title">React class</h3>
      </div>
    )

    ReactDOM.render(vDom, document.getElementById('root'))
  </script>
</body>
</html>